#include <stdio.h>
#include <stdlib.h>

#include <SDL/SDL_thread.h>

#include "digmania.h"
#include "version.h"

int main(int argc, char **argv)
{
	printf("digmania development build (revision "HG_REV")\n");
	client_options_t *opts = read_client_config(CLIENT_CONFIG);
	
	render_context_t *context = create_render_context(opts);
	//start_render_loop(context);
	render_loop(context);
	
	//SDL_WaitThread(context->worker, 0);
	
	destroy_render_context(context);
	destroy_client_options(opts);
	return 0;
}
